[mirrors]
http://www.milkytracker.org/files/milkytracker-0.90.85.tar.bz2

[main]
filesize=2509060
sha512=b7129f537d8ee5ec35b77fe287d3ebc693a2cf5b679ccde672fa66e6a5cf1b003594e4128c6db6c037f13b54264064e1a8283339367fdf327e87c23784bb00c7

[deps]
sdl
zlib
zziplib

[build]
patch -p1 < "$K"/milkytracker-64bit.patch || exit 1
patch -p1 < "$K"/milkytracker-gzip.patch || exit 1
CFLAGS=-D_GNU_SOURCE ./configure -C --prefix="$butch_prefix" || exit 1
make -j$MAKE_THREADS || exit 1
make DESTDIR="$butch_install_dir" install || exit 1

# install desktop file
dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/share/applications
cp "$K"/milkytracker.desktop "$dest"/share/applications/
